<?php

require_once( '../system/smarty.inc' );
require_once( '../system/mdao/Class_M_OTHER.php' );
require_once( '../system/login.inc.php' );
require_once( '../system/aoki_m.php' );
require_once( '../system/Class_PWD.php' );

Class_PWD::valid_auth(AOKI_AUTH_MON_CELL,$login['staff_auth']);
if ( $login['staff_auth'] == 'G-2' || $login['staff_auth'] == 'G-3' ) {
	$smarty->assign('isG23', $isG23 );
}
require_once( '../system/cell_ajareks_sort.inc.php' );


if (empty($forms["year4"])) {
	$forms["year4"] = date('Y');
}

$year4s=  Class_M_OTHER::get_years_array();
if ( in_array($forms["year4"], $year4s)){
	
}else {
	$year4 =  "";
	foreach ($year4s as $v){
		$year4 =  $v;
	}
	$forms["year4"] =  $year4;
}

if( isset($forms) )       $smarty->assign('forms', $forms);


$smarty->assign('year4', $year4s);

$week= Class_M_OTHER::get_week_array( $forms["year4"], PLEASE_SELECT_ARR ,FALSE, TRUE);

$smarty->assign('week', $week );


$smarty->assign('menu',  $smarty->fetch('menu.html') );
$smarty->assign('logout', $smarty->fetch('logout.html') );
$smarty->assign('footer', $smarty->fetch('footer.html') );

$smarty->display('tmoncell_update.html');

?>